package io.github.kimmking.kkconfig.repository;

import io.github.kimmking.kkconfig.spring.ConfigMeta;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Description for this class.
 *
 * @Author : kimmking(kimmking@apache.org)
 * @create 2024/4/19 21:07
 */
public interface KKRepositoryChangeListener<T> {

    void onRepositoryChange(KKRepositoryChangeEvent<T> event);

    record KKRepositoryChangeEvent<T>(ConfigMeta meta, T config) {
    }
}
